﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace UI
{
   public class ListDataResponse<T>
    {
        public int statusCode { get; set; }

        public List<T> data { get; set; }

        public bool succeeded { get; set; }

        public errors errors { get; set; }

        public string extras { get; set; }


        public long timestamp { get; set; }
    }


    public class SingleDataResponse<T>
    {
        public int statusCode { get; set; }

        public  T  data { get; set; }

        public bool succeeded { get; set; }

        public errors errors { get; set; }

        public string extras { get; set; }


        public long timestamp { get; set; }
    }


    public class errors
    {
        public string field { get; set; }
       
        public List<string> messages { get; set; }
    }
}
